import request from '@/request/api'
// 1、状态录入-状态变更
export function changeStatus(data) {
  return request({
    url: '/eam-service-operation/equipment/changeStatus',
    method: 'get',
    params: data
  })
}
// 2、状态录入-变更历史-查询列表
export function queryChangeList(data) {
  return request({
    url: '/eam-service-operation/equipment/queryOldStatusList',
    method: 'get',
    params: data
  })
}
// 3、状态录入-查询列表
export function queryStatusList(data) {
  return request({
    url: '/eam-service-operation/equipment/queryStatusList',
    method: 'get',
    params: data
  })
}
// 4、基础信息维护-同步
export function synchronizeInfo() {
  return request({
    url: '/eam-service-operation/equipment/synchroEquipmeng',
    method: 'get'
  })
}
// 5、基础信息维护-查询列表（分页）
export function queryBaseList(data) {
  return request({
    url: '/eam-service-operation/equipment/queryBaseList',
    method: 'get',
    params: data
  })
}
// 6、调度管理-状态汇总-线路状态汇总
export function lineInfo() {
  return request({
    url: '/eam-service-operation/equipment/Analysis/lineAnalysis',
    method: 'get'
  })
}
// 7、调度管理-状态汇总-机组状态汇总
export function unitInfo() {
  return request({
    url: '/eam-service-operation/equipment/Analysis/unitAnalysis',
    method: 'get'
  })
}
// 8、调度管理-状态汇总-主变状态汇总
export function mainTransformerInfo() {
  return request({
    url: '/eam-service-operation/equipment/Analysis/tranAnalysis',
    method: 'get'
  })
}
// 9、事故跳闸-查询列表
export function queryAccidentList(data) {
  return request({
    url: '/eam-service-operation/equipment/queryAccidentList',
    method: 'get',
    params: data
  })
}
// 10、事故跳闸-新建/保存
export function saveAccident(data) {
  return request({
    url: '/eam-service-operation/equipment/saveAccident',
    method: 'post',
    data: data
  })
}
// 11、事故跳闸-详情
export function detailsAccident(data) {
  return request({
    url: '/eam-service-operation/equipment/detailsAccident',
    method: 'get',
    params: data
  })
}
// 12、事故跳闸-删除
export function deleteAccident(data) {
  return request({
    url: '/eam-service-operation/equipment/deleteAccident',
    method: 'delete',
    params: data
  })
}
// 12、事故跳闸-调度-设备管理单位
export function queryDispatchAlldept() {
  return request({
    url: '/eam-service-operation/equipment/queryDispatchAlldept',
    method: 'get',
  })
}
// 13、调度管理-基础信息维护-单位上移下移
export function deptMangeSort(data) {
  return request({
    url: '/eam-service-operation/equipment/deptMangeSortSwap',
    method: 'get',
    params: data
  })
}
// 14、调度管理-基础信息维护-设备上移下移
export function changeSort(data) {
  return request({
    url: '/eam-service-operation/equipment/sortSwap',
    method: 'get',
    params: data
  })
}
// 15、基础信息维护-查询列表（不分页）
export function queryBaseListNoPage(data) {
  return request({
    url: '/eam-service-operation/equipment/queryBaseListNoPage',
    method: 'get',
    params: data
  })
}